import http from '@http/http'
export const _getUserInfo = (errMsg) => http.GET('/api/user/getUser', {}, errMsg)
export const getUserByAccount = (account) => http.GET(`api/user/getUserByAccount?account=${account}`)
export const getUserByActivity = (aid) => http.GET(`api/user/getUserByActivity?aid=${aid}`)
export const insertStudentSchool = (uid, aid, sname) => http.GET(`api/user/insertStudentSchool?uid=${uid}&aid=${aid}&sname=${sname}`)
export const selectStudentSchool = (uid, aid) => http.GET(`api/user/selectStudentSchool?uid=${uid}&aid=${aid}`)
export const saveUserUrl = (uid, url) => http.GET(`api/user/saveUserUrl?uid=${uid}&url=${url}`)
export const selectUserUrl = (uid) => http.GET(`api/user/selectUserUrl?uid=${uid}`)
export const deleteStudentSchool = (uid, aid) => http.GET(`api/user/deleteStudentSchool?uid=${uid}&aid=${aid}`)
export const updateUser = (user) => http.POST(`api/user/updateUser`, user)
export const getAllUser = () => http.GET(`api/user/getAllUser`)
export const insertUser = (array) => http.POST(`/api/user/insertUser`, array)
export const getAllUserBySid = (sid) => http.GET(`/api/user/getAllUserBySid?sid=${sid}`)
